#
# @author Wójcik Karol <wojcikk@student.agh.edu.pl>
# @licence http://www.gnu.org/copyleft/gpl.html GNU/GPL
#

class CreateFaculties < ActiveRecord::Migration
  def self.up
    add_column :majors, :faculty_id, :integer
    create_table :faculties do |t|
   	t.column :name, :string 
   end
  end

  def self.down
    remove_column :majors, :faculty_id
    drop_table :faculties
  end
end
